package com.example.base.mvi

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.ViewDataBinding

abstract class BaseActivity<VDB : ViewDataBinding, UiIntent:IUiIntent, VM :BaseViewModel<UiIntent>>:AppCompatActivity() {
    abstract val binging : VDB
    abstract val vm : VM
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(binging.root)
        initView()
        initData()
    }

    abstract fun initView()

    abstract fun initData()
}